/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.uch.biblioteca.hibernateSpringDao;
import java.util.Date;
import java.util.List;
import net.uch.biblioteca.mapping.BibPrestamo;
import org.springframework.dao.DataAccessException;
/**
 *
 * @author Vasquez
 */
public interface HSBibPrestamoDAO {
    
    public void guardarPrestamo(BibPrestamo prestamo) throws Exception;
    
    public List<BibPrestamo> traerReservasxLector ( int LecId );
    
    public List<BibPrestamo> traerPrestamosxLector ( int LecId );
    
    public void AprobarPrestamo ( int idPre, int usuId, String obsPre ) throws Exception;
    
    public void cancelarReserva( int resId ) throws Exception;
    
    public BibPrestamo buscarPrestamoPorId( Integer preId ) throws DataAccessException;
    
    public void devolverPrestamo( int resId, Date fecDdev ) throws Exception;
    
    public List<BibPrestamo> traerHistorialxLector ( int LecId );
}
